<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    String actionURL = path + "/cms/custAnalysis/doQuery.do";
%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>">
<title>客史管理</title>
<link href="css/css-main.css" rel="stylesheet" type="text/css" />
		<link rel=stylesheet type=text/css
			href="css/msgbox/jquery.msgbox.css" />
		<script type="text/javascript" src="js/jquery.min.js">
</script>
		<script type="text/javascript"
			src="js/msgbox/jquery.dragndrop.min.js">
</script>
		<script type="text/javascript" src="js/msgbox/msgbox.js">
</script>
		<script type="text/javascript" src="js/common.js">
</script>
</head>
<body>
<div class="main-con"> 
  <!--//导航位置层-->
  
      <div class="main-bar"><span class="bar-position">当前位置：<a href="#">会员管理</a> &gt;&gt; 客史管理 &gt;&gt; 客史统计查询</span></div>
      <div class="cont_right_cont">
        <div>
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td align="right" valign="middle">查询条件：</td>
              <td width="120" height="40" align="right" valign="middle"><select name="select2" class="data-searchtxt-select" id="queryConditon_key" style="width:100px">
                <option value="customerName">姓名</option>
                <option value="orderNum">订单号</option>
<!--                <option value="customerId">会员卡号</option>-->
              </select></td>
              <td width="150" align="right" valign="middle"><span style="padding:0px">
                <input name="textfield9" type="text" class="data-searchtxt-runtime" id="queryConditon_value" value="" />
                </span></td>
              <td width="100" align="right" valign="middle"><input name="queryBtn" type="button" class="data-searchbtn" id="queryBtn" value="查 询" onclick="do_search(1);"/></td>
            </tr>
          </table>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="datalist">
          <tr>
<!--        <th width="4%"><input type="checkbox" name="checkbox" id="checkbox"></th>-->
			<th>订单号</th>
            <th>姓名</th>
            <th>会员卡号</th>
            <th>会员级别</th>
            <th>职业背景</th>
            <th>预订数量</th>
            <th>消费金额</th>
            <th width="12%">预订日期</th>
          </tr>
          <!-- 记录为空 -->
						<s:if test=" results.size == 0">
						</s:if>
						<!-- 存在记录 -->
						<s:if test=" results.size > 0">
							<!--显示List记录！-->
							<s:iterator value="results" status="s">
								<tr>
									<td>
										<s:property value="results[#s.index].orderNum" />
									</td>
									<td>
										<a
											href="cms/custAnalysis/doDetail.do?innerIndex=<s:property value="results[#s.index].customerInfo.customerId"/>"><s:property
												value="results[#s.index].customerName" />
										</a>
									</td>
									<td>
										<s:property value="results[#s.index].customerInfo.cardNo" />
									</td>
									<td>
										<s:property value="results[#s.index].customerInfo.clientLevelId.clientLevelName" />
									</td>
									<td>
										<s:property
											value="results[#s.index].customerInfo.profession" />
									</td>
									<td>
										<s:property value="results[#s.index].bookingNumber" />
									</td>
									<td>
										<s:property value="results[#s.index].roomTotalPrice" />
									</td>
									<td>
										<s:property value="results[#s.index].deneratedDate" />
									</td>
								</tr>
							</s:iterator>
						</s:if>
					</table>
        <form name="pages" method="post">
					<!--隐藏域 Start -->
					<!-- 引入分页和排序 -->
					<div style="display: none">
						<input id="curPage" type="hidden" name="page.curPage"
							value="<s:property value='page.curPage'/>">
						<input id="numPerPage" type="hidden" name="page.numPerPage"
							value="<s:property value='page.numPerPage'/>">
						<input type="hidden" id="queryConditon_key_hidden"
							name="queryConditon.key"
							value="<s:property value='queryConditon.key'/>">
						<input id="queryConditon_value_hidden" type="hidden"
							name="queryConditon.value"
							value="<s:property value='queryConditon.value'/>">
						<iframe name="hid" id="hid" src="" height="0px"></iframe>
					</div>

					<!--隐藏域 End   -->
					<div <s:if test=" results.size == 0">style="display:none"</s:if>>
						<%@include file="/jsp/cms/common/page.txt"%>
					</div>
				</form>
  </div>
</div>
</body>
</html>
